<?
include '../config.inc.php';
$username = $_GET['username'];
$password = $_GET['password'];
$id = $_GET['id'];
if($id ==''){
  echo 'id不能为空';
  exit;
}
include '../member.php';
if($admin != 1){
  echo '无权限操作';
  exit;
}
?>
<!DOCTYPE html>
<html>    
<meta http-equiv="content-type" content="text/html;charset=utf-8">
 <head>
 <script src="../js/jquery.1.7.2.min.js"></script>
 <link href="../layui/css/layui.css" rel="stylesheet" type="text/css"/>
 <script src="../layer/layer.js"></script>
 <script src="../layui/layui.js"> </script>
</head>
<body>
<p>您确定删除[id]为[ <?echo $id;?> ]这条的消息吗</p> 
 <button onclick="del();" class="layui-btn layui-btn-small">确认删除</button>

<script>
  function del(){
	  var id = '<?echo $id;?>';
    $.post("/del_msg/del.php", {username: '<?echo $username;?>',password: '<?echo $password;?>',id: id},
   function(data){
	//返回值
   layer.msg(data);
   });

  }
</script>
</body>